package cn.dglydrpy.study.mmail.product.service;

import cn.dglydrpy.study.mmail.product.vo.AttrGroupRelationVO;
import cn.dglydrpy.study.mmail.product.vo.AttrResponseVo;
import cn.dglydrpy.study.mmail.product.vo.AttrVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.dglydrpy.study.mmail.common.utils.PageUtils;
import cn.dglydrpy.study.mmail.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author LY_飘涯
 * @email dglydrpy@qq.com
 * @date 2024-10-12 15:57:11
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attrVO);

    PageUtils queryBasePage(Map<String, Object> params, Long catelogId,String attrType);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateBaseAttr(AttrVO attr);

    void removeByIdsDetails(List<Long> asList);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    void deleteRelation(AttrGroupRelationVO[] vos);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrGroupId);
}

